import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options  # 用于设置谷歌浏览器
from selenium.webdriver.chrome.service import Service  # 用于管理驱动
import threading


class Browser:
    # 创建设置浏览器对象
    def open_browser(self):
        o_llq = Options()
        o_llq.add_argument('--no-sandbox')
        o_llq.add_experimental_option('detach', True)
        llq = webdriver.Chrome(service=Service(r'D:\software\chromedriver-win64\chromedriver.exe'), options=o_llq)
        return llq


browser = Browser()

threading.Thread(target=browser.open_browser).start()
threading.Thread(target=browser.open_browser).start()
threading.Thread(target=browser.open_browser).start()

